#!/bin/bash

# Usage: ./Build <NameOfC++Program>
# Purpose: Compile a C++ program with the File System project.
#   If the code you use as the command line argument is "Example.cpp"
#   then the executable is named "Example".


x=$1 # first command line argument to script
# strip off the .cpp (or other) extension
exe=${x%.*}

g++ -g -I../include -I../BlockGroup -I../Directory  ../BlockGroup/*.cpp ../Directory/*.cpp ../utils/*.cpp ../File/*.cpp -I../File $1 -o ${exe}


